﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class ShowLeaguerInfo : System.Web.UI.Page
{
    Operation operation = new Operation();
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            string id = Request.QueryString["id"].ToString();
            DataSet ds = operation.SelectPublicInfoById(Convert.ToInt32(id), true);
            txtType.Text = ds.Tables[0].Rows[0][1].ToString();
            txtTitle.Text = ds.Tables[0].Rows[0][2].ToString();
           
            txtInfo.Text = ds.Tables[0].Rows[0][3].ToString();
            txtLinkMan.Text = ds.Tables[0].Rows[0][4].ToString();
            txtTel.Text = ds.Tables[0].Rows[0][5].ToString();
            date.Text = ds.Tables[0].Rows[0][7].ToString();
           
            if (ds.Tables[0].Rows[0][9].ToString().CompareTo("0") != 0)
            {
                txtType.Text = txtType.Text + "--" +
                    operation.SelectCategoryByID(ds.Tables[0].Rows[0][9].ToString()).Tables[0].Rows[0][1].ToString();
            }
        }
    }
    
}
